#!coding=utf-8
from django.conf.urls import patterns, include, url
import views

urlpatterns = patterns('enterprise_chemicals',
    #化学品(主要产品及输出)
    url(r'^chemicalsList/$','views.chemicalsList', name=u'产品列表'),
    url(r'^chemicalsAdd/$','views.chemicalsAdd', name=u'产品添加'),
    url(r'^chemicalsDetail/(\d{1,9})$','views.chemicalsDetail', name=u'产品详情'),
    url(r'^chemicalsEdit/(\d{1,9})$','views.chemicalsEdit', name=u'产品修改'),
    url(r'^chemicalsDel/(\d{1,9})$','views.chemicalsDel', name=u'产品删除'),

    #申报操作
    url(r'^submitChemicals/(\d{1,9})', 'views.submitChemicals', name=u'申报操作'),

    #原辅料
    url(r'^materialList/$','views.materialList', name=u'原辅料列表'),
    url(r'^materialAdd/$','views.materialAdd', name=u'原辅料添加'),
    url(r'^materialDetail/(\d{1,9})$','views.materialDetail', name=u'原辅料详情'),
    url(r'^materialEdit/(\d{1,9})$','views.materialEdit', name=u'原辅料修改'),
    url(r'^materialDel/(\d{1,9})$','views.materialDel', name=u'原辅料删除'),
    url(r'^materialElEdit/(\d{1,9})$','views.materialElEdit', name=u'成分信息修改'),

    #原辅料
    url(r'^impList/$','views.impList', name=u'中间产品信息表列表'),
    url(r'^impAdd/$','views.impAdd', name=u'中间产品信息表添加'),
    url(r'^impDetail/(\d{1,9})$','views.impDetail', name=u'中间产品信息表详情'),
    url(r'^impEdit/(\d{1,9})$','views.impEdit', name=u'中间产品信息表修改'),
    url(r'^impDel/(\d{1,9})$','views.impDel', name=u'中间产品信息表删除'),
    url(r'^impElEdit/(\d{1,9})$','views.impElEdit', name=u'成分信息修改'),

    #产品信息
    url(r'^productList/$','views.infoList', name=u'产品信息列表'),
    url(r'^productAdd/$','views.infoAdd', name=u'产品信息新增'),
    url(r'^productDetail/(\d{1,9})$','views.infoDetail', name=u'产品信息详情'),
    url(r'^productEdit/(\d{1,9})$','views.infoEdit', name=u'产品信息修改'),
    url(r'^productDel/(\d{1,9})$','views.infoDel', name=u'产品信息删除'),
    url(r'^productElEdit/(\d{1,9})$','views.elEdit', name=u'成分信息修改'),
    
    url(r'^productListAjax/$','ajax.productListAjax', name=u'产品信息列统计表'),
    url(r'^materialListAjax/$','ajax.materialListAjax', name=u'原辅材料输入及使用企业列表'),
    url(r'^chemicalsListAjax/$','ajax.chemicalsListAjax', name=u'主要产品(含副产品和中间体) 及输出列表'),

)
